<div class="hostels view">
<h2><?php  echo __('Hostel');?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($hostel['Hostel']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($hostel['Hostel']['name']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Hostel'), array('action' => 'edit', $hostel['Hostel']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Hostel'), array('action' => 'delete', $hostel['Hostel']['id']), null, __('Are you sure you want to delete # %s?', $hostel['Hostel']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Hostels'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Hostel'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Studentinfos'), array('controller' => 'studentinfos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Studentinfo'), array('controller' => 'studentinfos', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Studentinfos');?></h3>
	<?php if (!empty($hostel['Studentinfo'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Student Id'); ?></th>
		<th><?php echo __('Gender Id'); ?></th>
		<th><?php echo __('Citizenship Id'); ?></th>
		<th><?php echo __('Foreignlanguage Id'); ?></th>
		<th><?php echo __('Lastname'); ?></th>
		<th><?php echo __('Firstname'); ?></th>
		<th><?php echo __('Eng Lastname'); ?></th>
		<th><?php echo __('Eng Firstname'); ?></th>
		<th><?php echo __('Enrollmentdate'); ?></th>
		<th><?php echo __('Passport Birthplace'); ?></th>
		<th><?php echo __('Passport Birthdate'); ?></th>
		<th><?php echo __('Passport Number'); ?></th>
		<th><?php echo __('Phone'); ?></th>
		<th><?php echo __('Mobile'); ?></th>
		<th><?php echo __('Email'); ?></th>
		<th><?php echo __('Moreinfo'); ?></th>
		<th><?php echo __('Educationline Id'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($hostel['Studentinfo'] as $studentinfo): ?>
		<tr>
			<td><?php echo $studentinfo['id'];?></td>
			<td><?php echo $studentinfo['student_id'];?></td>
			<td><?php echo $studentinfo['gender_id'];?></td>
			<td><?php echo $studentinfo['citizenship_id'];?></td>
			<td><?php echo $studentinfo['foreignlanguage_id'];?></td>
			<td><?php echo $studentinfo['lastname'];?></td>
			<td><?php echo $studentinfo['firstname'];?></td>
			<td><?php echo $studentinfo['eng_lastname'];?></td>
			<td><?php echo $studentinfo['eng_firstname'];?></td>
			<td><?php echo $studentinfo['enrollmentdate'];?></td>
			<td><?php echo $studentinfo['passport_birthplace'];?></td>
			<td><?php echo $studentinfo['passport_birthdate'];?></td>
			<td><?php echo $studentinfo['passport_number'];?></td>
			<td><?php echo $studentinfo['phone'];?></td>
			<td><?php echo $studentinfo['mobile'];?></td>
			<td><?php echo $studentinfo['email'];?></td>
			<td><?php echo $studentinfo['moreinfo'];?></td>
			<td><?php echo $studentinfo['educationline_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'studentinfos', 'action' => 'view', $studentinfo['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'studentinfos', 'action' => 'edit', $studentinfo['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'studentinfos', 'action' => 'delete', $studentinfo['id']), null, __('Are you sure you want to delete # %s?', $studentinfo['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Studentinfo'), array('controller' => 'studentinfos', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
